package com.ruoyi.mall.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 购物车对象 mall_shopping_cart
 *
 * @author ruoyi
 * @date 2024-01-11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MallShoppingCart extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 购物车ID
     */
    private Long cartId;

    /**
     * 会员ID
     */
    @Excel(name = "会员ID")
    private Long userId;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long goodsId;

    /**
     * 规格ID
     */
    @Excel(name = "规格ID")
    private Long normId;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Long num;

    /**
     * 0 = 未购买 1 = 已购买
     */
    @Excel(name = "0 = 未购买 1 = 已购买")
    private Integer isPay;

    /**
     * 是否删除
     */
    private Integer delFlag;

    /**
     * 是否为立即购买
     */
    @Excel(name = "是否为立即购买")
    private Integer isNew;
}
